﻿using System;
using System.Collections.ObjectModel;
using System.Collections.Generic;
using System.Text;
using System.Data.OleDb;

namespace Aandelendelen.Db
{
	public class QueryArguments : Collection<OleDbParameter>
	{
		public QueryArguments()
		{
		}

		public void Add(string name, object value, OleDbType type)
		{
			this.Add(QueryArguments.CreateArgument(name, value, type));
		}

		public static OleDbParameter CreateArgument(string name, object value, OleDbType type)
		{
			OleDbParameter arg = new OleDbParameter(name, type);
			arg.Value = value;

			return arg;
		}
	}
}
